<?php

//start a child process , in this process open http server
$process = new swoole_process(function($pro){
    // like run the command php redis.php
    $pro->exec("/data/tools/repository/php7/bin/php",[__DIR__."/../server/http_server.php"]);
},false);
$pid = $process->start();
echo "Child Pid :".$pid.PHP_EOL;

swoole_process::wait();
